{if !$EMBEDDED_REPORT} 
<HTML>
<HEAD>
<TITLE>{$TITLE}</TITLE>
<LINK id="reportico_css" REL="stylesheet" TYPE="text/css" HREF="{$STYLESHEET}">
</HEAD>
<BODY class="swPrpBody">
{else}
<LINK id="reportico_css" REL="stylesheet" TYPE="text/css" HREF="{$STYLESHEET}">
{/if}
<h1 class="swTitle">{$TITLE}</h1>
<FORM name="topmenu" method="POST" action="{$SCRIPT_SELF}">
<input type="hidden" name="session_name" value="{$SESSION_ID}" />
{if $SHOW_TOPMENU}
	<TABLE class="swPrpTopMenu">
		<TR>
{if ($DB_LOGGEDON)} 
			<TD style="width: 15%" class="swPrpTopMenuCell">
{if ($DBUSER)}
Logged On As {$DBUSER}
{else}
&nbsp;
{/if}
			</TD>
{/if}
{if strlen($MAIN_MENU_URL)>0} 
			<TD style="text-align:center"><a class="swLinkMenu" href="{$MAIN_MENU_URL}">La Menu Main</a></TD>
{/if}
{if $SHOW_MODE_BOX}
			<TD width="30%">Mode 
				<select class="swRunMode" name="execute_mode">
					<OPTION label="0" value="MAINTAIN">Designer</OPTION>
					<OPTION selected label="1" value="PREPARE">Executer</OPTION>
				</select>
				<input class="swPrpSubmit" type="submit" name="submit_execute_mode" value="Allez">
			</TD>
{/if}
{if $SHOW_LOGOUT}
			<TD width="15%" align="right" class="swPrpTopMenuCell">
				<input class="swPrpSubmit" type="submit" name="logout" value="Log Off">
			</TD>
{/if}
{if $SHOW_LOGIN}
			<TD width="50%"></TD>
			<TD width="35%" align="right" class="swPrpTopMenuCell">
				User Id <input type="text" name="userid" value=""><br>
				Password <input type="password" name="password" value="">
			</TD>
			<TD width="15%" align="right" class="swPrpTopMenuCell">
				<input class="swPrpSubmit" type="submit" name="login" value="Login">
			</TD>
{/if}
		</TR>
	</TABLE>
{/if}
{if $SHOW_CRITERIA}
	<TABLE class="swPrpCritBox" cellpadding="0">
		<TR>
			<TD class="swPrpCritEntry">
				<TABLE class="swPrpCritEntryBox">
{section name=critno loop=$CRITERIA_ITEMS}
					<tr class="swPrpCritLine">
						<td class='swPrpCritTitle'>
							{$CRITERIA_ITEMS[critno].title}
						</td>
						<td class="swPrpCritSel">
							{$CRITERIA_ITEMS[critno].entry}
						</td>
						<td class="swPrpCritExpandSel">
{if $CRITERIA_ITEMS[critno].expand}
							<input class="swPrpCritExpandButton" type="submit" name="EXPAND_{$CRITERIA_ITEMS[critno].name}" value=">>">
{/if}
						</td>
					</TR>
{/section}
				</TABLE>
			</td>
			<TD class="swPrpExpand">
				<TABLE class="swPrpExpandBox">
					<TR class="swPrpExpandRow">
						<TD class="swPrpExpandCell" rowspan="0" valign="top">
{if $SHOW_EXPANDED}
							Chercher {$EXPANDED_TITLE} :<br><input  type="text" name="expand_value" size="30" value="{$EXPANDED_SEARCH_VALUE}"</input>
									<input class="swPrpSubmit" type="submit" name="EXPANDSEARCH_{$EXPANDED_ITEM}" value="Search"><br>

{$CONTENT}
							<br>
							<input class="swPrpSubmit" type="submit" name="EXPANDCLEAR_{$EXPANDED_ITEM}" value="Evider">
							<input class="swPrpSubmit" type="submit" name="EXPANDSELECTALL_{$EXPANDED_ITEM}" value="Choisi Toute">
							<input class="swPrpSubmit" type="submit" name="EXPANDOK_{$EXPANDED_ITEM}" value="OK">
{/if}
{if !$SHOW_EXPANDED}
{if !$REPORT_DESCRIPTION}
						&nbsp<br>
						Enter Your Report Criteria Here. To enter criteria use the appropriate expand key.
						When you are happy select the appropriate output format and click OK.
{else}
						&nbsp<br>
						{$REPORT_DESCRIPTION}
{/if}
{/if}
						</TD>
					</TR>
				</TABLE>
			</TD>
		</TR>
<!---->
{if $SHOW_OUTPUT}
					<tr>
						<td class="swPrpOutputBox" colspan=2>
							<TABLE width="100%">
								<TR>
									<TD style="vertical-align: top">
										Report Outpute :<br>
											<INPUT type="radio" name="target_format" value="HTML" {$OUTPUT_TYPES[0]}>HTML<BR>
											<INPUT type="radio" name="target_format" value="PDF" {$OUTPUT_TYPES[1]}>PDF<BR>
											<INPUT type="radio" name="target_format" value="CSV" {$OUTPUT_TYPES[2]}>CSV<BR>
									</td>
									<td width="50%" style="vertical-align: top">
										<INPUT type="checkbox" name="target_attachment" value="1" {$OUTPUT_ATTACH}>Comme Attachement</INPUT><BR>
										<INPUT type="checkbox" name="target_show_body" value="1" {$OUTPUT_SHOWDET}>Show Detail</INPUT><BR>
{if $OUTPUT_SHOW_SHOWGRAPH}
										<INPUT type="checkbox" name="target_show_graph" value="1" checked>Show Graph</INPUT><BR>
{/if}
{if $OUTPUT_SHOW_DEBUG}
										<BR>
										Inspecter Level
										<SELECT class="swRunMode" name="debug_mode">';
											<OPTION {$DEBUG_NONE} label="0" value="0">Rien</OPTION>
											<OPTION {$DEBUG_LOW} label="1" value="1">Bas</OPTION>
											<OPTION {$DEBUG_MEDIUM} label="2" value="2">Medi</OPTION>
											<OPTION {$DEBUG_HIGH} label="3" value="3">Haut</OPTION>
										</SELECT>
{/if}
										<BR>
									</td>
								</tr>
								<tr>
									<td colspan=2>
										<input type="submit" class="swPrpSubmit" name="submit" value="Executez!">
										<input type="submit" class="swPrpSubmit" name="clearform" value="Resettez">
									</TD>
								</TR>
							</TABLE>
						</td>
					</tr>
				</TD>
			</TABLE>

{/if}
{/if}
			<!---->
{if strlen($STATUSMSG)>0} 
			<TABLE class="swStatus">
				<TR>
					<TD>{$STATUSMSG}</TD>
				</TR>
			</TABLE>
{/if}
{if strlen($ERRORMSG)>0} 
			<TABLE class="swError">
				<TR>
					<TD>{$ERRORMSG}</TD>
				</TR>
			</TABLE>
{/if}
		</TR>
	</TABLE>
</FORM>
{if !$EMBEDDED_REPORT} 
</BODY>
</HTML>
{/if}
